﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IPC.Communication.Framework.Profinet.LSIS
{
    public class XGTAddressData
    {
        public string Address
        {
            get;
            set;
        }

        public string Data
        {
            get;
            set;
        }

        public byte[] DataByteArray
        {
            get;
            set;
        }

        public string AddressString
        {
            get;
            set;
        }

        public byte[] AddressByteArray { get { return Encoding.ASCII.GetBytes(AddressString); } }

        public byte[] LengthByteArray { get { return BitConverter.GetBytes((short)AddressByteArray.Length); } }
    }
}